package com.jy.wms.dao;

import com.jy.wms.common.base.BaseDao;
import com.jy.wms.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: WmsPdaShipmentMapper.java
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @Author Yjs
 * @Date Tue Feb 06 10:50:00 GMT+08:00 2018
 */
public interface WmsPdaShipmentMapper extends BaseDao<WmsPdaShipment> {
    /**
     * 分页查询发运任务信息
     * @param entity 实体
     * @return List<WmsPdaShipment>
     */
    public List<WmsPdaShipment> baseSelectPage(@Param("WmsPdaShipment") WmsPdaShipment entity);

    /**
     * 查询货主信息
     *
     * @param hzid
     * @return
     */
    public WmsOwner searchWmsOwner(@Param("hzid") String hzid);
    /**
     * 查询发运订单信息
     *
     * @param fyid
     * @return
     */
    public WmsShipmentOrder searchOrder(@Param("fyid") String fyid);

    /**
     * 查询发运订单明细信息
     *
     * @param fyid
     * @return
     */
    public List<WmsPdaShipment> searchPicking(@Param("fyid") String fyid);

    /**
     * 整箱的拣货记录将不需要复核就可以发运(查询是否为整箱)
     *
     * @param zxid
     * @return
     */
    public WmsBox searchBox4(@Param("zxid") String zxid);
    /**
     * 下发发运任务
     *
     * @param wmsPdaShipment
     * @return
     */
    public Integer addPda(@Param("WmsPdaShipment") WmsPdaShipment wmsPdaShipment);

    /**
     * 更改拣货表:发运任务下发状态
     *
     * @param jhid
     * @return
     */
    public Integer updateXfzt(@Param("jhid") String jhid, @Param("xfzt") String xfzt);

    /**
     * 删除pda记录
     *
     * @param pdaString
     * @return
     */
    public Integer deletePda(@Param("pdaString") List<String> pdaString);

    /**
     * PDA消息表添加
     *
     * @param wmsPdaMsg
     * @return
     */
    public Integer saveMsg(@Param("WmsPdaMsg") WmsPdaMsg wmsPdaMsg);

    /**
     * 线路查询
     *
     * @param hzid
     * @return
     */
    public List<WmsLine> searchXl(@Param("hzid") String hzid);
}
